local lockKey = KEYS[1]
local lockKey2 = KEYS[2]
   -- get info
local result_1 = redis.call('GET', lockKey)
local maxCount = redis.call('GET', lockKey2)
if tonumber(result_1) < tonumber(maxCount)
then
local result_2= redis.call('INCR', lockKey)
return result_1
else
return 0
end